<h:panelGrid xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui" xmlns:t="http://myfaces.apache.org/tomahawk"
	id="pnlTherapyBasicInfo" columns="2" width="100%" columnClasses="width50,width50">

	<h:panelGrid width="100%">
		<h:outputLabel value="#{msgs.therapy_category} *" />
		<p:tree value="#{evokPatientTherapyBean.therapyTree}" var="node"
			selection="#{evokPatientTherapyBean.selectedCategoryNodes}" selectionMode="checkbox"
			dynamic="false" cache="false" style="width:98%;">
			<p:treeNode>
				<h:outputText value="#{node.name}" />
			</p:treeNode>
		</p:tree>
	</h:panelGrid>
	
	<h:panelGrid width="100%">
		<p:panelGrid style="width:100%" columnClasses="width40,width60" columns="2">
			<h:outputLabel value="#{msgs.default_name_surname} " />
			<h:outputLabel
				value="#{evokPatientTherapyBean.domainPatient.patient.surname} #{evokPatientTherapyBean.domainPatient.patient.name}" />

			<h:outputLabel value="#{msgs.patient_therapy_startDate} *" />
			<p:calendar value="#{evokPatientTherapyBean.patientTherapy.startDate}" required="true" label="#{msgs.patient_therapy_startDate}"
				 pattern="dd/MM/yyyy"
				showOn="button" navigator="true" />

			<h:outputLabel value="#{msgs.patient_therapy_endDate}" />
			<p:calendar value="#{evokPatientTherapyBean.patientTherapy.endDate}" showOn="button"
				navigator="true" pattern="dd/MM/yyyy" />

			<h:outputLabel value="#{msgs.patient_therapy_type}" />
			<p:selectOneMenu value="#{evokPatientTherapyBean.patientTherapy.type}">
				<f:selectItem itemLabel="" itemValue="" />
				<f:selectItems value="#{sessionEnum['TherapyType']}" var="en" itemLabel="#{en.name}"
					itemValue="#{en.value}" />
			</p:selectOneMenu>

			<h:outputLabel value="#{msgs.default_status}" />
			<p:selectOneMenu value="#{evokPatientTherapyBean.patientTherapy.status}">
				<f:selectItem itemLabel="" itemValue="" />
				<f:selectItems value="#{sessionEnum['TherapyStatus']}" var="en" itemLabel="#{en.name}"
					itemValue="#{en.value}" />
			</p:selectOneMenu>

			<h:outputLabel value="#{msgs.patient_therapy_success}" />
			<p:selectOneMenu value="#{evokPatientTherapyBean.patientTherapy.success}">
				<f:selectItem itemLabel="" itemValue="" />
				<f:selectItems value="#{sessionEnum['TherapySuccess']}" var="en" itemLabel="#{en.name}"
					itemValue="#{en.value}" />
			</p:selectOneMenu>

			<h:outputLabel value="#{msgs.patient_therapy_payment}" />
			<p:selectOneMenu value="#{evokPatientTherapyBean.patientTherapy.payment}">
				<f:selectItem itemLabel="" itemValue="" />
				<f:selectItems value="#{sessionEnum['TherapyPayment']}" var="en" itemLabel="#{en.name}"
					itemValue="#{en.value}" />
			</p:selectOneMenu>
		</p:panelGrid>

		<h:outputLabel value="#{msgs.domain_remark}" />
		<p:inputTextarea value="#{evokPatientTherapyBean.patientTherapy.remarkDoc}" maxlength="250"
			rows="8" style="width:95%" />
	</h:panelGrid>
	<f:facet name="footer">
		<h:panelGroup style="float:right;">
			<p:commandButton value="#{msgs.button_submit}" icon="ui-icon-disk"
				actionListener="#{evokPatientTherapyBean.submit}"
				update=":mainform:pnlinfo,:messages,:mainform:pnlquery" />
		</h:panelGroup>
	</f:facet>
</h:panelGrid>
